import request from "@/utils/request"

export interface QueryChargeOrderListParams extends PaginationParams {
  userId?: string
  telephone?: string
  beginTime?: string
  endTime?: string
}

export interface ChargeOrder {
  id: number
  /** 充值金额 */
  amount: number
  nickname: string
  telephone: string
  /** 平台订单号 */
  orderCode: string
  /** 三方订单号 */
  thirdCode: string
  /** 付款时间 */
  payTime: string
}

export async function queryChargeList(params: QueryChargeOrderListParams) {
  return request<ChargeOrder[]>('/app/manager/balance/inList', {
    data: params,
  })
}
